package com.sixth.sso.feign;

import com.sixth.core.entity.Patient;
import com.sixth.core.entity.User;
import com.sixth.core.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: 闫克起
 * @Description:
 * @Date: Create in 11:27 2024/8/12
 */
@FeignClient(value = "hospital-system")
public interface UserFeign {

    @GetMapping("/system/user/getByName/{name}")
    public R<User> getByName(@PathVariable String name);

    @GetMapping("/system/user/getByName/{phone}")
    public R<User> getByPhone(@PathVariable String phone);

    @GetMapping("/system/client/getByName/{name}")
    public R<Patient> getByNamePatient(@PathVariable String name);

}
